<div class="sign-up grid_15 prefix_5 clearfix">
<div class="l-curve-top">          
          <div class="r-curve-top">
		              <div class="top-bg"></div>
		  </div>
        </div><div class="shad-bg-lft clearfix">
          <div class="shad-bg-rgt">
            <div class="shad-bg clearfix">
			<div class="main-section">
			<div class="clearfix">
		 <div class="open-id-block grid_left grid_8 clearfix">
        <h5 class="grid_left"><?php echo __l('Sign in using:'); ?></h5>
		<ul class="open-id-list list grid_left clearfix">
			<li class="face-book">
				 <?php if(Configure::read('facebook.is_enabled_facebook_connect')):  ?>
					<?php echo $this->Html->link(__l('Sign in with Facebook'), array('controller' => 'users', 'action' => 'login','type'=>'facebook', 'admin'=>false), array('title' => __l('Sign in with Facebook'), 'escape' => false)); ?>
				 <?php endif; ?>
			</li>
			<?php if(Configure::read('twitter.is_enabled_twitter_connect')):?>
				<li class="twiiter"><?php echo $this->Html->link(__l('Sign in with Twitter'), array('controller' => 'users', 'action' => 'login',  'type'=> 'twitter', 'admin'=>false), array('class' => 'Twitter', 'title' => __l('Sign in with Twitter')));?></li>
			<?php endif;?>
			<?php if(Configure::read('user.is_enable_openid')):?>
				<li class="yahoo"><?php echo $this->Html->link(__l('Sign in with Yahoo'), array('controller' => 'users', 'action' => 'login', 'type' => 'yahoo', 'admin' => false), array('title' => __l('Sign in with Yahoo')));?></li>
				<li class="gmail"><?php echo $this->Html->link(__l('Sign in with Gmail'), array('controller' => 'users', 'action' => 'login', 'type' => 'gmail', 'admin' => false), array('title' => __l('Sign in with Gmail')));?></li>
				<li class="open-id"><?php 	echo $this->Html->link(__l('Sign in with Open ID'), array('controller' => 'users', 'action' => 'login','type'=>'openid', 'admin'=>false), array('class'=>'js-ajax-colorbox-openid {source:"js-dialog-body-open-login"}','title' => __l('Sign in with Open ID')));?></li>
			<?php endif;?>
		</ul>
		</div>
	</div>
			<?php
				echo $this->Form->create('User', array('action' => 'login', 'class' => 'normal clearfix'));
				echo $this->Form->input(Configure::read('user.using_to_login'));
				echo $this->Form->input('passwd', array('label' => __l('Password')));
				?>
				

				<?php echo $this->Form->input('User.is_remember', array('type' => 'checkbox', 'label' => __l('Remember me on this computer.'))); ?>
 
               <div class="or"> 
			   <?php echo $this->Html->link(__l('Forgot your password?') , array('controller' => 'users', 'action' => 'forgot_password', 'admin' => false),array('title' => __l('Forgot your password?')));
			?>
			<?php if(!(!empty($this->request->params['prefix']) && $this->request->params['prefix'] == 'admin') && empty($this->request->params['requested'])):	?> |

			<?php 
					echo $this->Html->link(__l('Signup') , array('controller' => 'users',	'action' => 'register', 'admin' => false),array('title' => __l('Signup'))); ?>
				
				<?php
				endif;
				$f = (!empty($_GET['f'])) ? $_GET['f'] : ((!empty($this->request->data['User']['f'])) ? $this->request->data['User']['f'] : (($this->request->params['controller'] != 'users' && ($this->request->params['action'] != 'login' && $this->request->params['action'] != 'admin_login')) ? $this->request->url : ''));
				if (!empty($f)):
					echo $this->Form->input('f', array('type' => 'hidden', 'value' => $f));
				endif;?></div>				
			<div class="submit-block clearfix">	<?php
				echo $this->Form->end(__l('Login'));
			?></div>
            	  </div>
				  </div>
	</div>
  </div>
  <div class="l-curve-bot">         
           <div class="r-curve-bot">
		               <div class="bot-bg"></div>
		   </div>
        </div>
</div>
